package fi.jamk.ourcookingapp.backend.model;

import java.io.Serializable;

/**
 * This is an ingredient added to receipts
 * @author Marius
 */
public class Ingredient implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String name;
	
	private String typeOfAmount;

	private int ID;
	
	private int amount;
	
	public Ingredient(String name, String typeOfAmount, int amount) {
		this.name = name;
		this.typeOfAmount = typeOfAmount;
		this.amount = amount;
	}
	
	public Ingredient(String name, String typeOfAmount) {
		this.name = name;
		this.typeOfAmount = typeOfAmount;
	}

	public int getAmount(){
		return this.amount;
	}
	
	public void setAmount(int amount){
		this.amount = amount;
	}
	
	public int getID() {
		return ID;
	}
	
	public void setID(int iD) {
		ID = iD;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getTypeOfAmount() {
		return typeOfAmount;
	}
	
	public void setTypeOfAmount(String typeOfAmount) {
		this.typeOfAmount = typeOfAmount;
	}

}